package com.gitee.qdbp.general.common.biz.oplog.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.base.controlling.OperateTracesBean;
import com.gitee.qdbp.general.common.api.oplog.model.OperateTracesWhere;
import com.gitee.qdbp.general.common.api.oplog.service.IOperateTracesQueryer;
import com.gitee.qdbp.general.common.biz.oplog.basic.OperateTracesBasic;

/**
 * 操作记录明细业务处理类
 *
 * @author zhh
 * @version 170522
 */
@Service
@Transactional(readOnly = true)
public class OperateTracesQueryer implements IOperateTracesQueryer {

    /** 操作记录明细DAO **/
    @Autowired
    private OperateTracesBasic operateTracesBasic;

    @Override
    public OperateTracesBean find(String id) throws ServiceException {
        return operateTracesBasic.findById(id);
    }

    @Override
    public OperateTracesBean find(OperateTracesWhere where) throws ServiceException {
        return operateTracesBasic.find(where);
    }

    @Override
    public List<OperateTracesBean> list(OperateTracesWhere where, OrderPaging paging) throws ServiceException {
        return operateTracesBasic.list(where, paging);
    }

}
